import request from '@/utils/request'

// 查询充值明细列表
export function listPayDetail(query) {
  return request({
    url: '/system/payDetail/list',
    method: 'get',
    params: query
  })
}

// 查询充值计划下拉列表
export function planSelect(query) {
  return request({
    url: '/system/payRechargePlan/select',
    method: 'get',
    params: query
  })
}

// 查询充值计划下拉列表
export function manualRecharge(data) {
  return request({
    url: '/system/payDetail/manualRecharge',
    method: 'post',
    data: data
  })
}

// 查询充值明细详细
export function getPayDetail(id) {
  return request({
    url: '/system/payDetail/' + id,
    method: 'get'
  })
}

// 新增充值明细
export function addPayDetail(data) {
  return request({
    url: '/system/payDetail',
    method: 'post',
    data: data
  })
}

// 修改充值明细
export function updatePayDetail(data) {
  return request({
    url: '/system/payDetail',
    method: 'put',
    data: data
  })
}

// 删除充值明细
export function delPayDetail(id) {
  return request({
    url: '/system/payDetail/' + id,
    method: 'delete'
  })
}
